1 /**
2 * Copyright (C) 2006-2019 INRIA and contributors
3 *
4 * Spoon is available either under the terms of the MIT License (see LICENSE-MIT.txt) of the Cecill-C License (see LICENSE-CECILL-C.txt). You as the user are entitled to choose the terms under which to adopt Spoon.
5 */
6 package spoon.reflect.visitor.chain;
7
8 /**
9 * Use in {@link CtQuery#failurePolicy(QueryFailurePolicy)} to define how to handle failure
10 */
11 public enum QueryFailurePolicy {
12 /**Throws ClassCastException when output type of previous step cannot be assigned to input type of next step*/
13 FAIL,
14 /**when output type of previous step cannot be assigned to input type of next step then such output is ignored*/
15 IGNORE
16 }